import 'package:flutter/material.dart';

final kAlertMainColor = Color(0xffD16A28);
final kAlertBgColor = Color(0xff414243);
final kAlertBoxDecoration = BoxDecoration(
    color: kAlertBgColor,
    border: Border.all(color: kAlertMainColor),
    borderRadius: BorderRadius.circular(15));

final double kAlertTitleFontSize = 20;

///标题
kAlertTitle(String title) => Container(
      alignment: Alignment.center,
      height: 50,
      child: Text(
        title,
        style: TextStyle(fontSize: kAlertTitleFontSize, color: Colors.white),
      ),
    );

kAlertInput({
  TextEditingController? controller,
  FocusNode? focusNode,
}) =>
    TextField(
      controller: controller,
      focusNode: focusNode,
      style: TextStyle(color: Colors.white),
      decoration: InputDecoration(
          hintStyle: TextStyle(color: Colors.white),
          enabledBorder:
              UnderlineInputBorder(borderSide: BorderSide(color: Colors.white)),
          border: UnderlineInputBorder(
              borderSide: BorderSide(color: Colors.white))),
    );
